#include <QCoreApplication>
#include <QObject>
#include <QDBusAbstractAdaptor>
#include <QDBusConnection>
#include <QDBusInterface>

#include "simpleAdapter.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    auto connection = QDBusConnection::sessionBus();
    connection.registerService("CYG.API");

    Simple *s1 = new Simple(nullptr, "haha1");
    new Simple001(s1);

    Simple *s2 = new Simple(nullptr, "haha2");
    new Simple002(s2);

    return a.exec();
}
